package com.hcms.common.utils.tree;

import java.util.List;

// 树 结构 模型
public class TreeNode {
    // Id
    private int id;
    // 父级 Id
    private int parentId;
    // 子级列表
    private List<TreeNode> children;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }
}
